<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<%@ page session="true"%>

<c:choose>
	<c:when test="${sessionScope.identity.stylesheet != 'default' and sessionScope.identity.stylesheet != null}">
		<link rel="stylesheet"
			href="${pageContext.request.contextPath}/stylesheets/${sessionScope.identity.stylesheet}">
	</c:when>
	<c:when test="${post.style != null}">
		<link rel="stylesheet"
			href="${pageContext.request.contextPath}/stylesheets/${post.style}">
	</c:when>
	<c:otherwise>
		<link rel="stylesheet"
			href="${pageContext.request.contextPath}/stylesheets/main.css">
	</c:otherwise>
</c:choose>